<?php
global $_RQ,$_AR;
$_RQ['op']=$_RQ['op']?$_RQ['op']:'edit';
$return=array();
	if($_RQ['op']=='edit'){
	$item=$this->plugin_setting('shopset');
	//$item['daohang']=json_encode($item['daohang'],true);
    $return['item']=$item;
	
	$return['status']=array('1'=>'是','0'=>'否');
	$htmls=array(
		'type'=>'edit',
		'post'=>'post',
		'desc'=>'交易设置',
		'edit_tab'=>true,
		'edits'=>array(
			'0'=>array(
				'title'=>'线下核销设置',
				'list'=>array(
					array('type'=>'radio','title'=>'是否填写联系人','name'=>'trade_linkname','options'=>'status'),
					array('type'=>'radio','title'=>'是否填写联系方式','name'=>'trade_linkphone','options'=>'status'),
					
				)
			),
			'1'=>array(
				'title'=>'余额积分设置',
				'list'=>array(
					array('type'=>'radio','title'=>'账户充值','name'=>'trade_cz','options'=>'status'),
					array('type'=>'string','name'=>'czmix','title'=>'最低充值金额'),
					array('type'=>'radio','title'=>'余额提现','name'=>'trade_tixian','options'=>'status'),
					array('type'=>'string','name'=>'trade_txmix','title'=>'最低提现金额'),
					array('type'=>'string','name'=>'trade_txshouxu','title'=>'提现手续费(%)'),
				)
			),
	
			),
			);
	$return['htmls']=$htmls;
	exi($return);
	}
	if($_RQ['op']=='post'){
	$postdata=get_postdata();
	$item=$this->plugin_setting('shopset',$postdata);
	exi('设置成功');
}
?>